<nz-card>
  <sf *ngIf="!isGeneralQuery" mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
  
  <div class="my-md">
    <nz-input-group *ngIf="isGeneralQuery" [nzSuffix]="suffixIconSearch">
      <input type="text" [(ngModel)]="keyword" nz-input placeholder="类型代码/类型名称/代码/名称" (keyup.enter)="st.reset({keyword:keyword})"/>
    </nz-input-group>
    <ng-template #suffixIconSearch>
      <i nz-icon nzType="search" (click)="st.reset({keyword:keyword})"></i>
    </ng-template>
    <button nz-button nzType="text" (click)="isGeneralQuery=!isGeneralQuery">{{isGeneralQuery?'高级查询':'普通查询'}}</button>
    <button nz-button (click)="add()" [nzType]="'primary'">新建</button>
    <button *ngIf="selectedRows.length > 0" nz-button (click)="deletes()" >删除</button>
  </div>
  <st #st [data]="url" [columns]="columns" (change)="stChange($event)"></st>
</nz-card>
